<?php

namespace addons\mental\controller;

use addons\mental\model\Category as cateModel;

class Category extends Base
{
    public function category()
    {
        $cateModel = new cateModel();
        $list = $cateModel->field('id,name')->select();
        $this->success(__('Operation completed'), $list);
    }
}
